package com.china.osourcechina;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.china.base.BaseActivity;

/**
 * Created by Administrator on 2016/5/7.
 */
public class DrawerActivity extends BaseActivity {

    private TextView tv_drawer_title;

    @Override
    protected int loadWindowLayout() {
        return R.layout.activity_drawer;
    }

    @Override
    protected void initTitleBar() {

    }

    @Override
    protected void initViews() {
        initview();
    }

    private void initview() {
        findViewById(R.id.iv_drawer_return);
        tv_drawer_title = (TextView)findViewById(R.id.tv_drawer_title);
        findViewById(R.id.iv_drawer_return).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        tv_drawer_title.setText(getIntent().getStringExtra("title"));
    }
}
